#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void fun(int (*p)[5], int r, int c)
{
	int i = 0;
	int j = 0;
	for (i = 0; i < r; i++)
	{
		for (j = 0; j < c; j++)
		{
			printf("%d ", *((*p + i) + j));

		}
		printf("\n");
	}


}
int main()
{
	int arr[3][5] = { 1,2,3,4,5, 6,7 ,8,9,10,1,4,7,2,5 };
	fun(arr, 3, 5);
}